Skip to content

Support flexible machine config for PowerVS - #83161

Open
sonia-garudi wants to merge 1 commit into
openshift:mainfrom
sonia-garudi:powervs-machine-config-update
Open

Support flexible machine config for PowerVS#83161
sonia-garudi wants to merge 1 commit into
openshift:mainfrom
sonia-garudi:powervs-machine-config-update

Conversation

@sonia-garudi

@sonia-garudi sonia-garudi commented Aug 10, 2026

Copy link
Copy Markdown

Allow per-job override of POWERVS_VSI_MEMORY, POWERVS_VSI_PROCESSORS, and POWERVS_VSI_PROC_TYPE in the hypershift-mce-power-create-ibmcloud-workers-infra step for jobs with heavier workloads.

Summary by CodeRabbit

This change updates the OpenShift CI PowerVS worker infrastructure step for HyperShift MCE jobs.

  • Jobs can override PowerVS worker memory, processor count, and processor type.
  • The step uses each override when it is set.
  • The step reads unset values from ibmcloud-resources.json.
  • This supports PowerVS worker configurations for jobs with heavier workloads.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: dd575812-bdcb-45dd-b46b-d040e8873d66

📥 Commits

Reviewing files that changed from the base of the PR and between add2700 and 8338c0b.

📒 Files selected for processing (2)
  • ci-operator/step-registry/hypershift/mce/power/create/ibmcloud-workers/infra/hypershift-mce-power-create-ibmcloud-workers-infra-commands.sh
  • ci-operator/step-registry/hypershift/mce/power/create/ibmcloud-workers/infra/hypershift-mce-power-create-ibmcloud-workers-infra-ref.yaml
🚧 Files skipped from review as they are similar to previous changes (2)
  • ci-operator/step-registry/hypershift/mce/power/create/ibmcloud-workers/infra/hypershift-mce-power-create-ibmcloud-workers-infra-ref.yaml
  • ci-operator/step-registry/hypershift/mce/power/create/ibmcloud-workers/infra/hypershift-mce-power-create-ibmcloud-workers-infra-commands.sh

Walkthrough

PowerVS worker resource variables are now configurable through the step reference. The command uses each configured value when present and reads the corresponding value from ibmcloud-resources.json only when the variable is empty.

Changes

PowerVS worker resource configuration

Layer / File(s) Summary
Resource configuration and fallbacks
ci-operator/step-registry/hypershift/mce/power/create/ibmcloud-workers/infra/hypershift-mce-power-create-ibmcloud-workers-infra-ref.yaml, ci-operator/step-registry/hypershift/mce/power/create/ibmcloud-workers/infra/hypershift-mce-power-create-ibmcloud-workers-infra-commands.sh
The step reference adds optional memory, processor count, and processor type variables. The command preserves non-empty variables and uses credential-file values as fallbacks.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: srivastav-abhishek, neha-dot-yadav

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: support for flexible PowerVS machine configurations through per-job overrides.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The PR changes only a shell script and a YAML step reference; it adds no Ginkgo test declarations or test titles.
Test Structure And Quality ✅ Passed The PR changes only one shell script and one step YAML file; it adds no Ginkgo test code or It blocks, so this check is not applicable.
Microshift Test Compatibility ✅ Passed The PR changes only a shell script and step YAML; it adds no Ginkgo tests or MicroShift-incompatible API usage.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The pull request changes only a shell script and YAML step definition; it adds no Ginkgo e2e tests or multi-node test assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed The commit changes only a PowerVS setup shell script and CI step environment definitions; it adds no manifests, operators, controllers, or scheduling constraints.
Ote Binary Stdout Contract ✅ Passed The patch changes only an infrastructure Bash script and step YAML; neither is an OTE binary or suite setup, and no OTE process-level stdout code changed.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The diff changes only an IBM Cloud infrastructure script and YAML step reference; it adds no Ginkgo tests or new IPv4 or external-connectivity test logic.
No-Weak-Crypto ✅ Passed The PR adds only PowerVS environment fallbacks and YAML declarations; added lines contain no flagged weak algorithms, custom crypto, or secret comparisons.
Container-Privileges ✅ Passed The patch only adds PowerVS environment overrides and fallback logic. The changed ref and script contain no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, or allowPrivilegeEscalation settings.
No-Sensitive-Data-In-Logs ✅ Passed The diff adds only PowerVS memory, processor count, and processor type; it adds no logging, and the existing API-key command references a file path rather than exposing the key.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 10, 2026
@openshift-ci

openshift-ci Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Hi @sonia-garudi. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Comment on lines +106 to +114
if [[ -z "${POWERVS_VSI_MEMORY}" ]]; then
POWERVS_VSI_MEMORY=$(jq -r '.powervsVSIMemory' "${AGENT_POWER_CREDENTIALS}/ibmcloud-resources.json")
fi
if [[ -z "${POWERVS_VSI_PROCESSORS}" ]]; then
POWERVS_VSI_PROCESSORS=$(jq -r '.powervsVSIProcessors' "${AGENT_POWER_CREDENTIALS}/ibmcloud-resources.json")
fi
if [[ -z "${POWERVS_VSI_PROC_TYPE}" ]]; then
POWERVS_VSI_PROC_TYPE=$(jq -r '.powervsVSIProcType' "${AGENT_POWER_CREDENTIALS}/ibmcloud-resources.json")
fi

@prb112 prb112 Aug 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should just set the bash defaults ...

POWERVS_VSI_MEMORY=${POWERVS_VSI_MEMORY:-$(jq -r '.powervsVSIMemory' "$json_file")}
POWERVS_VSI_PROCESSORS=${POWERVS_VSI_PROCESSORS:-$(jq -r '.powervsVSIProcessors' "$json_file")}
POWERVS_VSI_PROC_TYPE=${POWERVS_VSI_PROC_TYPE:-$(jq -r '.powervsVSIProcType' "$json_file")}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks!

@prb112 prb112 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 10, 2026
@openshift-ci

openshift-ci Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: prb112, sonia-garudi
Once this PR has been reviewed and has the lgtm label, please assign srivastav-abhishek for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Sonia Garudi <sonia.garudi1@ibm.com>
@sonia-garudi
sonia-garudi force-pushed the powervs-machine-config-update branch from a785808 to 8338c0b Compare August 11, 2026 06:28
@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2026
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@sonia-garudi: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
periodic-ci-openshift-hypershift-release-4.18-periodics-mce-e2e-power-ovn-conformance N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-4.16-eus-upgrade-from-4.14-power-hypershift-mce-replace-f28 N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.16-periodics-mce-e2e-power-ovn-conformance N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-amd64-nightly-aws-ipi-ovn-hypershift-mce-power-guest-critical-f14 N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.18-periodics-mce-e2e-x86-power-heterogeneous-conformance N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.17-amd64-nightly-aws-ipi-ovn-hypershift-mce-power-guest-critical-f14 N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.17-periodics-mce-e2e-power-ovn-conformance N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.16-amd64-nightly-aws-ipi-ovn-hypershift-mce-power-mgmt-critical-f14 N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.17-periodics-mce-e2e-x86-power-heterogeneous-conformance N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.21-periodics-mce-e2e-power-ovn-conformance N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.20-periodics-mce-e2e-x86-power-heterogeneous-conformance N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.21-periodics-mce-e2e-x86-power-heterogeneous-conformance N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.19-periodics-mce-e2e-power-ovn-conformance N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.20-periodics-mce-e2e-power-ovn-conformance N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.19-periodics-mce-e2e-x86-power-heterogeneous-conformance N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.22-periodics-mce-e2e-x86-power-heterogeneous-conformance N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.22-periodics-mce-e2e-power-ovn-conformance N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.17-amd64-nightly-aws-ipi-ovn-hypershift-mce-power-mgmt-critical-f14 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-4.18-eus-upgrade-from-4.16-power-hypershift-mce-replace-f28 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.16-amd64-nightly-aws-ipi-ovn-hypershift-mce-power-guest-critical-f14 N/A periodic Registry content changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@sonia-garudi

Copy link
Copy Markdown
Author

/pj-rehearse periodic-ci-openshift-hypershift-release-4.21-periodics-mce-e2e-power-ovn-conformance

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@sonia-garudi: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@sonia-garudi: needs-ok-to-test label found, no rehearsals will be run

@Neha-dot-Yadav

Copy link
Copy Markdown
Contributor

/ok-to-test

@openshift-ci openshift-ci Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 11, 2026
@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

@sonia-garudi: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants